package com.bulemobi.activity.ac_user_centre;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.bulemobi.net.tsz.afinal.annotation.view.ViewInject;
import com.bulemobi.view.BaseActivity;
import com.bulemobi.view.titleView.ActionBarView;
import com.jsyh.hcb.R;

/**
 * Created by 武 on 2014/9/21 0021.
 * 我的资料
 */
public class Ac_MyData extends BaseActivity implements View.OnClickListener {
    @ViewInject(id = R.id.actionBar)
    ActionBarView actionBarView;
    @ViewInject(id = R.id.tv_save)
    TextView tv_save;
    @ViewInject(id = R.id.img_pic)
    ImageView img_pic;
    @ViewInject(id = R.id.lay_myPic)
    LinearLayout lay_myPic;
    @ViewInject(id = R.id.ed_email)
    EditText ed_email;
    @ViewInject(id = R.id.ed_myName)
    EditText ed_myName;
    @ViewInject(id = R.id.lay_choice)
    LinearLayout lay_choice;
    @ViewInject(id = R.id.img_formPic)
    ImageView img_formPic;
    @ViewInject(id = R.id.img_formCam)
    ImageView img_formCam;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ac_my_data_main);
        initView();
    }

    private void initView() {
        actionBarView.title.setText(getResources().getString(R.string.ac_myData));
        tv_save.setOnClickListener(this);
        lay_myPic.setOnClickListener(this);
        img_formCam.setOnClickListener(this);
        img_formPic.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            //头像选择
            case R.id.lay_myPic:
                if (lay_choice.getVisibility() == View.VISIBLE) {
                    lay_choice.setVisibility(View.GONE);
                } else {
                    lay_choice.setVisibility(View.VISIBLE);
                }
                break;
            //保存按钮
            case R.id.tv_save:
                break;
            //拍照
            case R.id.img_formCam:
                break;
            //从相册选择
            case R.id.img_formPic:
                break;
        }
    }
}
